#include <iomanip>
#include <iostream>
using namespace std;

int main(int argc, char** argv) {
    int n, i, sum = 0, a;
    cin >> n;
    for (i = 0; i < n; i++) {
        cin >> a;
        sum += a;
    }
    cout << sum << " " << fixed << setprecision(5) << (double)sum / n;
    return 0;
}